package com.aps.entity.domain.device;

import java.util.Date;

import javax.persistence.*;

import com.aps.entity.domain.BaseEntity;
import com.aps.entity.eunm.AdjustType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liaoguangan
 * @description <设备占用表>
 * @date 2018/4/1 14:34
 */

@Table(name = "aps_device_used")
@Entity
@Data
@ApiModel
public class DeviceUsed extends BaseEntity {

    @Column
    @ApiModelProperty("订单号")
    private String orderNum;

    @Column
    @ApiModelProperty("菜品序号")
    private String dishSeq;

    @Column
    @ApiModelProperty("占用类型")
    @Enumerated(EnumType.STRING)
    private AdjustType adjustType;

    @Column
    @ApiModelProperty("占用时间")
    private Date usedTime;

    @Column
    @ApiModelProperty("释放时间")
    private Date releaseTime;

    @Column
    @ApiModelProperty("设备模块代码")
    private String deviceModuleCode;

}
